# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=aiengine
pkgver=2.4.0
pkgrel=1
epoch=1
groups=('blackarch' 'blackarch-networking' 'blackarch-defensive')
pkgdesc='A packet inspection engine with capabilities of learning without any human intervention.'
arch=('x86_64' 'aarch64')
url='https://bitbucket.org/camp0/aiengine/downloads/'
license=('GPL3')
depends=('boost' 'boost-libs' 'python' 'libpcap')
source=("https://bitbucket.org/camp0/aiengine/downloads/$pkgname-$pkgver.tar.gz")
sha512sums=('0045eea2666e58db2dd127c9f867fa8bcc374775219c12671bb6f76f7701bca1ea6deba3488971ca48620478b310a4c5064df2a5952f79caa6a3bb28b013fa6b')

build() {
  cd "$pkgname-$pkgver"

  ./autogen.sh

  export PYTHON_VERSION=3.10

  ./configure --prefix=/usr --enable-tcpqos --enable-reject --enable-pythongil

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

